package com.aorise.utils.json;

/**
 * @Author:yyp
 * @Desicription: InnerResult
 * @Date:Created in 2019-02-21 09:24
 * @Modified By:
 */
public class InnerResult<T> {

    /** 业务对象 */
    private T object;

    /** 成功标志 */
    private boolean      success = false;

    /**
     * 构造函数
     */
    public InnerResult() {
    }

    /**
     * 构造函数
     *
     * @param isSuccess
     * @param obj
     */
    public InnerResult(boolean isSuccess, T obj) {
        this.setSuccess(isSuccess);
        this.object = obj;
    }

    /**
     * Getter method for property <tt>success</tt>.
     *
     * @return property value of success
     */
    public boolean getSuccess() {
        return success;
    }

    /**
     * Setter method for property <tt>counterType</tt>.
     *
     * @param success value to be assigned to property success
     */
    public void setSuccess(boolean success) {
        this.success = success;
    }


    /**
     * Getter method for property <tt>object</tt>.
     *
     * @return property value of object
     */
    public T getObject() {
        return object;
    }

    /**
     * Setter method for property <tt>counterType</tt>.
     *
     * @param object value to be assigned to property object
     */
    public void setObject(T object) {
        this.object = object;
    }

    @Override
    public String toString() {
        return this.toString();
    }
}
